package com.qys.livesMall.open.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统消息已读日志
 * </p>
 *
 * @author wzy
 * @since 2023-07-11
 */
@Getter
@Setter
@TableName("h2_open_sys_message_read_log")
@Schema(name = "OpenSysMessageReadLog", description = "系统消息已读日志")
public class H2OpenSysMessageReadLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "系统消息id")
    private Long messageId;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;

    @Schema(description = "对消息的状态（0未读,1查看）")
    private Integer messageState;
}
